package com.shisfish.enumeration;

/**
 * @author shisfish
 * @date 2020/1/17
 */
public enum ResultEnum {
    /**
     * 成功
     */
    SUCCESS(0, "success"),
    /**
     * 未知错误
     */
    NOT_KNOW(-1, "not know"),
    /**
     * 错误一
     */
    ERROR_1(1, "error1"),
    /**
     * 错误二
     */
    ERROR_2(2, "error2");

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
